package com.lj.pojo;

import java.util.ArrayList;
import java.util.List;

public class DirectorljExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DirectorljExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDirectorIdIsNull() {
            addCriterion("director_id is null");
            return (Criteria) this;
        }

        public Criteria andDirectorIdIsNotNull() {
            addCriterion("director_id is not null");
            return (Criteria) this;
        }

        public Criteria andDirectorIdEqualTo(String value) {
            addCriterion("director_id =", value, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdNotEqualTo(String value) {
            addCriterion("director_id <>", value, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdGreaterThan(String value) {
            addCriterion("director_id >", value, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdGreaterThanOrEqualTo(String value) {
            addCriterion("director_id >=", value, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdLessThan(String value) {
            addCriterion("director_id <", value, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdLessThanOrEqualTo(String value) {
            addCriterion("director_id <=", value, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdLike(String value) {
            addCriterion("director_id like", value, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdNotLike(String value) {
            addCriterion("director_id not like", value, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdIn(List<String> values) {
            addCriterion("director_id in", values, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdNotIn(List<String> values) {
            addCriterion("director_id not in", values, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdBetween(String value1, String value2) {
            addCriterion("director_id between", value1, value2, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorIdNotBetween(String value1, String value2) {
            addCriterion("director_id not between", value1, value2, "directorId");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordIsNull() {
            addCriterion("director_password is null");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordIsNotNull() {
            addCriterion("director_password is not null");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordEqualTo(String value) {
            addCriterion("director_password =", value, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordNotEqualTo(String value) {
            addCriterion("director_password <>", value, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordGreaterThan(String value) {
            addCriterion("director_password >", value, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("director_password >=", value, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordLessThan(String value) {
            addCriterion("director_password <", value, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordLessThanOrEqualTo(String value) {
            addCriterion("director_password <=", value, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordLike(String value) {
            addCriterion("director_password like", value, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordNotLike(String value) {
            addCriterion("director_password not like", value, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordIn(List<String> values) {
            addCriterion("director_password in", values, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordNotIn(List<String> values) {
            addCriterion("director_password not in", values, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordBetween(String value1, String value2) {
            addCriterion("director_password between", value1, value2, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorPasswordNotBetween(String value1, String value2) {
            addCriterion("director_password not between", value1, value2, "directorPassword");
            return (Criteria) this;
        }

        public Criteria andDirectorWageIsNull() {
            addCriterion("director_wage is null");
            return (Criteria) this;
        }

        public Criteria andDirectorWageIsNotNull() {
            addCriterion("director_wage is not null");
            return (Criteria) this;
        }

        public Criteria andDirectorWageEqualTo(Double value) {
            addCriterion("director_wage =", value, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorWageNotEqualTo(Double value) {
            addCriterion("director_wage <>", value, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorWageGreaterThan(Double value) {
            addCriterion("director_wage >", value, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorWageGreaterThanOrEqualTo(Double value) {
            addCriterion("director_wage >=", value, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorWageLessThan(Double value) {
            addCriterion("director_wage <", value, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorWageLessThanOrEqualTo(Double value) {
            addCriterion("director_wage <=", value, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorWageIn(List<Double> values) {
            addCriterion("director_wage in", values, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorWageNotIn(List<Double> values) {
            addCriterion("director_wage not in", values, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorWageBetween(Double value1, Double value2) {
            addCriterion("director_wage between", value1, value2, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorWageNotBetween(Double value1, Double value2) {
            addCriterion("director_wage not between", value1, value2, "directorWage");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeIsNull() {
            addCriterion("director_age is null");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeIsNotNull() {
            addCriterion("director_age is not null");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeEqualTo(Byte value) {
            addCriterion("director_age =", value, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeNotEqualTo(Byte value) {
            addCriterion("director_age <>", value, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeGreaterThan(Byte value) {
            addCriterion("director_age >", value, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeGreaterThanOrEqualTo(Byte value) {
            addCriterion("director_age >=", value, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeLessThan(Byte value) {
            addCriterion("director_age <", value, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeLessThanOrEqualTo(Byte value) {
            addCriterion("director_age <=", value, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeIn(List<Byte> values) {
            addCriterion("director_age in", values, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeNotIn(List<Byte> values) {
            addCriterion("director_age not in", values, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeBetween(Byte value1, Byte value2) {
            addCriterion("director_age between", value1, value2, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorAgeNotBetween(Byte value1, Byte value2) {
            addCriterion("director_age not between", value1, value2, "directorAge");
            return (Criteria) this;
        }

        public Criteria andDirectorSexIsNull() {
            addCriterion("director_sex is null");
            return (Criteria) this;
        }

        public Criteria andDirectorSexIsNotNull() {
            addCriterion("director_sex is not null");
            return (Criteria) this;
        }

        public Criteria andDirectorSexEqualTo(String value) {
            addCriterion("director_sex =", value, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexNotEqualTo(String value) {
            addCriterion("director_sex <>", value, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexGreaterThan(String value) {
            addCriterion("director_sex >", value, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexGreaterThanOrEqualTo(String value) {
            addCriterion("director_sex >=", value, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexLessThan(String value) {
            addCriterion("director_sex <", value, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexLessThanOrEqualTo(String value) {
            addCriterion("director_sex <=", value, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexLike(String value) {
            addCriterion("director_sex like", value, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexNotLike(String value) {
            addCriterion("director_sex not like", value, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexIn(List<String> values) {
            addCriterion("director_sex in", values, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexNotIn(List<String> values) {
            addCriterion("director_sex not in", values, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexBetween(String value1, String value2) {
            addCriterion("director_sex between", value1, value2, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorSexNotBetween(String value1, String value2) {
            addCriterion("director_sex not between", value1, value2, "directorSex");
            return (Criteria) this;
        }

        public Criteria andDirectorNameIsNull() {
            addCriterion("director_name is null");
            return (Criteria) this;
        }

        public Criteria andDirectorNameIsNotNull() {
            addCriterion("director_name is not null");
            return (Criteria) this;
        }

        public Criteria andDirectorNameEqualTo(String value) {
            addCriterion("director_name =", value, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameNotEqualTo(String value) {
            addCriterion("director_name <>", value, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameGreaterThan(String value) {
            addCriterion("director_name >", value, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameGreaterThanOrEqualTo(String value) {
            addCriterion("director_name >=", value, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameLessThan(String value) {
            addCriterion("director_name <", value, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameLessThanOrEqualTo(String value) {
            addCriterion("director_name <=", value, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameLike(String value) {
            addCriterion("director_name like", value, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameNotLike(String value) {
            addCriterion("director_name not like", value, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameIn(List<String> values) {
            addCriterion("director_name in", values, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameNotIn(List<String> values) {
            addCriterion("director_name not in", values, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameBetween(String value1, String value2) {
            addCriterion("director_name between", value1, value2, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorNameNotBetween(String value1, String value2) {
            addCriterion("director_name not between", value1, value2, "directorName");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneIsNull() {
            addCriterion("director_phone is null");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneIsNotNull() {
            addCriterion("director_phone is not null");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneEqualTo(String value) {
            addCriterion("director_phone =", value, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneNotEqualTo(String value) {
            addCriterion("director_phone <>", value, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneGreaterThan(String value) {
            addCriterion("director_phone >", value, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("director_phone >=", value, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneLessThan(String value) {
            addCriterion("director_phone <", value, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneLessThanOrEqualTo(String value) {
            addCriterion("director_phone <=", value, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneLike(String value) {
            addCriterion("director_phone like", value, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneNotLike(String value) {
            addCriterion("director_phone not like", value, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneIn(List<String> values) {
            addCriterion("director_phone in", values, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneNotIn(List<String> values) {
            addCriterion("director_phone not in", values, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneBetween(String value1, String value2) {
            addCriterion("director_phone between", value1, value2, "directorPhone");
            return (Criteria) this;
        }

        public Criteria andDirectorPhoneNotBetween(String value1, String value2) {
            addCriterion("director_phone not between", value1, value2, "directorPhone");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}